package com.lanmaoly.decorator1;

public class ConcreteDecorator2 extends Decorator {
    public ConcreteDecorator2(Component component) {
        super(component);
    }

    private void method2() {
        System.out.println("-----method2----");
    }

    @Override
    public void operate() {
        super.operate();
        method2();
    }
}
